home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / disk-man / linux-fl.000 / linux-fl / linux-floppies / Using_Floppies.txt < prev   
Encoding:
Text File  |  1996-04-06  |  1.8 KB  |  54 lines

  1. Extract from http://amelia.experiment.db.erau.edu/ldp/LDP/gs/node176.html
  2.  
  3.  
  4.                       4.6.2 Using floppies as filesystems
  5.               ------------------------------------
  6.  
  7. You can create a filesystem on a floppy just as you would on a hard
  8. drive partition. For example,
  9.  
  10.     mke2fs /dev/fd0 1440
  11.  
  12. creates a filesystem on the floppy in /dev/fd0. The size of the
  13. filesystem must correspond to the size of the floppy. High-density
  14. 3.5"  disks are 1.44 megabytes, or 1440 blocks, in size. High-density
  15. 5.25" disks are 1200 blocks.
  16.  
  17. In order to access the floppy, you must mount the filesystem
  18. contained on it. The command
  19.  
  20.     mkdir /a
  21.  
  22. will create a subdirectory /a and the command
  23.     
  24.     mount -t ext2 /dev/fd0 /a
  25.  
  26. will mount the floppy in /dev/fd0 under the subdirectory /a. 
  27. Now, all of the files on the floppy will appear under subdirectory /a
  28. on your drive. The "-t ext2" specifies an ext2fs filesystem type.
  29. If you created another type of filesystem on the floppy, you'll
  30. need to specify its type to the mount command.
  31.  
  32.   The ``mount point'' (the directory where you're mounting the filesystem)
  33. needs to exist when you use the mount command. If it doesn't exist, simply
  34. create it with mkdir.
  35.  
  36. See the full  HOWTO, Section 4.8 for more information on filesystems, mounting, and 
  37. mount points.
  38.  
  39.     Note that any I/O to the floppy is buffered just as hard disk
  40. I/O is. If you change data on the floppy, you may not see the drive light
  41. come on until the kernel flushes its I/O buffers. It's important that you
  42. not remove a floppy before you unmount it; this can be done with the command
  43.  
  44.     umount /dev/fd0
  45.  
  46. Do not simply switch floppies as you would on an MS-DOS system; whenever you
  47. change floppies, umount the first one and mount the next.
  48.  
  49. ----------------------------------------------------------------------------
  50.  
  51. Matt Welsh
  52. mdw@sunsite.unc.edu
  53.  
  54.